#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <easyx.h>
using namespace std;

int main()
{

	initgraph(800, 600);
	//setbkcolor(RGB(134, 172, 242));
	//setbkcolor(HSVtoRGB(219, 0.45, 0.95));
	//cleardevice();

	//float s = 0;
	//float hs = 360.0 / 600;

	//for (int i = 0; i < 600; i++, s += hs)
	//{
	//	setlinecolor(HSVtoRGB(s, 1, 1));
	//	line(0, i, 800, i);
	//}
	
	float s = 0.76;
	float hs = 0.76 / 600;

	for (int i = 0; i < 600; i++, s -= hs)
	{
		setlinecolor(HSVtoRGB(216, s, 0.95));
		line(0, i, 800, i);
	}

	s = 360;
	float ds = 360.0 / 100;
	int r = 200;
	for (int i = 0; i < 100; i++, r += 1, s -= ds)
	{
		setlinecolor(HSVtoRGB(s, 1, 1));
		circle(400, 600, r);
	}


	getchar();
	closegraph();
	return 0;
}
